package com.mhs.DTO;

import java.util.Hashtable;

import org.ksoap2.serialization.KvmSerializable;
import org.ksoap2.serialization.PropertyInfo;

public class UserDTO implements KvmSerializable{
	public String getUserName() {
		return UserName;
	}
	public void setUserName(String userName) {
		this.UserName = userName;
	}
	public String getPassWord() {
		return PassWord;
	}
	public void setPassWord(String passWord) {
		this.PassWord = passWord;
	}
	public String getIMEI() {
		return IMEI;
	}
	public void setIMEI(String iMEI) {
		IMEI = iMEI;
	}
	public String getIpClient() {
		return IpClient;
	}
	public void setIpClient(String ipClient) {
		this.IpClient = ipClient;
	}
	private String UserName;
	private String PassWord;
	private String IMEI;
	private String IpClient;
	
	public Object getProperty(int arg0) {
		switch(arg0){
        case 0:
            return UserName;
        case 1:
            return PassWord;
        case 2:
            return IMEI;
        case 3:
            return IpClient;
        }     
        return null;
	}
	
	public int getPropertyCount() {
		return 4;
	}
	
	@SuppressWarnings("rawtypes")
	public void getPropertyInfo(int index, Hashtable arg1, PropertyInfo info) {
		switch(index){
        case 0:
            info.type = PropertyInfo.STRING_CLASS;
            info.name = "UserName";
            break;
        case 1:
            info.type = PropertyInfo.STRING_CLASS;
            info.name = "PassWord";
            break;
        case 2:
            info.type = PropertyInfo.STRING_CLASS;
            info.name = "IMEI";
            break;
        case 3:
        	info.type = PropertyInfo.STRING_CLASS;
            info.name = "IpClient";
            break;
        default:break;
        }
	}
	
	public void setProperty(int index, Object value) {
		switch(index){
        case 0:
        	UserName = value.toString();
            break;
        case 1:
        	PassWord = value.toString();
            break;
        case 2:
        	IMEI = value.toString();
            break;
        case 3:
        	IpClient = value.toString();
            break;
        default:
            break;
        }
	}
}
